< previous page page_425 next page >

Page 425
theCommandBroker.CurrSQL. The second argument, which is optional, represents an Ado connection. The remaining arguments are optional flags that you can use for additional purposes.
Finally, the object theDatabaseForm invokes its own displayCurrentRecord method to display the desired record that you make current. By default, for any opened set of records, the first record is made the current record. Then, using its private theForm object reference to, in this case, the frmPublishers form, theDatabaseForm invokes the Show method of the actual form reference. Because IDBSubsystem is a common facade for the three data access mechanisms, the same object interactions just described can be easily used with Dao and Rdo by replacing the eDataAccess.Ado parameters with either eDataAccess.Dao or eDataAccess.Rdo, respectively. When implementing IDBSubsystem within IPersistence (when necessary), simply declare the former within the General Declarations section of the latter as follows:
Public theDBSubsystem As IDBSubsystem
and then access as follows (assuming an object variable, thePersistence):
thePersistence.theDBSubsystem.DBConnection.openConnection _ sConnStr
The Database Access Class Hierarchy Model
Figure 19.3 shows the classes that make up the Database Access Subsystem.
12180-0425a.gif
Figure 19.3.
The classes in the Database Access Subsystem.

 
< previous page page_425 next page >

If you like this book, buy it!